package org.oexam.ostudy.struct;

import java.util.ArrayList;
import java.util.List;

public class General_announcementsList {

	public void setHeadLine(List<Announcements> headLine) {
		this.headLine = headLine;
	}

	/**
	 * @uml.property  name="headLine"
	 * @uml.associationEnd  multiplicity="(0 -1)" elementType="org.oexam.ostudy.struct.Announcements"
	 */
	private List<Announcements> headLine = new ArrayList<Announcements>();

	public List<Announcements> getHeadLine() {
		return headLine;
	}

	public void setHeadLine(String id, String hl) {
 		Announcements headLine = new Announcements();
		headLine.setId(Integer.parseInt(id));
		headLine.setAnnouncement(hl);
		this.headLine.add(headLine);
	}

}
